import { post } from '@/utils/request'

// 查询敏感词列表 /service-cop/b/friends/v1/pageList
export const getSensitiveWordList = p => post(`/service-cop/b/sensitiveWord/v1/list`, p)
// 查询敏感词详情
export const viewSensitiveWord = p => post(`/service-cop/b/sensitiveWord/v1/view/${p.id}`, p, 'get')
// 添加敏感词
export const addSensitiveWord = p => post(`/service-cop/b/sensitiveWord/v1/add`, p)
// 修改敏感词
export const modifySensitiveWord = p => post(`/service-cop/b/sensitiveWord/v1/modify`, p)
// 删除敏感词
export const delSensitiveWord = p => post(`/service-cop/b/sensitiveWord/v1/del/${p.id}`, p, 'get')
// 删除敏感词
export const changeSensitiveWordStatus = p => post(`/service-cop/b/sensitiveWord/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
// 同步敏感词到企微
export const syncSensitiveWordToWxCp = p => post(`/service-cop/b/sensitiveWord/v1/syncSensitiveWordToWxCp/${p.id}`, p)
